package cn.edu.scau.cmi.limingben.hibernateprog.model.dao;

import cn.edu.scau.cmi.limingben.hibernateprog.model.domain.Student;

public class StudentDAO extends HibernateDAO<Student> {
    public void setName(Student student, String name){
        student.setName(name);
        this.saveOrUpdate(student);
    }
    public void add(String name){
        setName(new Student(), name);
    }
}
